<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>模板返利网－买模板返现金，免费装修，淘宝店铺装修模板免费买</title>
        <link rel="stylesheet" type="text/css" href="/Public/default/css/style.css" />
        <link rel="stylesheet" type="text/css" href="/Public/default/css/UserLogin.css" />
        <link rel="stylesheet" type="text/css" href="/Public/default/css/regStep.css" />
        <link rel="stylesheet" type="text/css" href="/Public/css/default.css" />
        <script type="text/javascript" src="__ROOT__/Public/js/jquery.min.js"></script>
        <script type="text/javascript" src="__ROOT__/Public/js/jquery.form.js"></script>
        <script type="text/javascript" src="__ROOT__/Public/js/operamasks-ui.min.js"></script>
        <script src="http://a.tbcdn.cn/s/kissy/1.1.6/seed-min.js"></script>
        <script src="http://a.tbcdn.cn/apps/pamirsshop/wiki/scripts/wiki.js"></script>
    </head>

    <body onload="bhtml()">
        <div id="edit"></div>
        <div id="meng"></div>
        <div id="tips"></div>
        <!--头部-->
        <div class="top">
            <ul>
                <li><a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=496886097&site=qq&menu=yes">售前QQ:496886097</a>；<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&uin=2261356156&site=qq&menu=yes">售后QQ:2261356156</a>
                 <a href="#">网站地图</a> 
                 <a href="javascript:" onClick="window.external.addFavorite('http://www.fanlibm.com','模板反复网')" title="模板反复网">收藏本站</a> 
                 <?php if(empty($_SESSION['userid'])): ?><a href="__APP__/Public/register" class="red">免费注册</a> ¦ 
                 <a href="__APP__/Public/login" class="blue">登录</a> ¦ 
                 <?php else: ?>
                 <a href="__APP__/Public/logout" class="blue">安全退出</a> ¦<?php endif; ?>
                 <a href="__APP__/Index">网站首页</a> ¦ 
                 <a href="#">客服中心</a> ¦ 
                 <a href="#">帮助中心</a></li>
            </ul> 
        </div>
        <!--LOGO-->
        <div class="head">
            <div class="logo"><img src="/Public/default/images/logo.jpg" width="227" height="90" title="返利网" /></div>
            <div class="banner"><img src="/Public/default/images/banner.jpg" width="637" height="109" title="广告" /></div>
        </div>
        <!--导航-->
        <div class="nav">
            <div class="w980">
                <a href="/" <?php if(($module_name == 'Index') and ($action_name == 'index') or ($module_name == 'Public')): ?>class="cur"<?php endif; ?> >首页</a> 
                <a href="__APP__/Temp/index" <?php if(($module_name == 'Temp') and ($action_name == 'index')): ?>class="cur"<?php endif; ?> >装修模板</a> 
                <a href="__APP__/Article/index" <?php if(($module_name == 'Article') and ($action_name == 'index')): ?>class="cur"<?php endif; ?> >开店知识</a> 
                <a href="/" >返利教程（必读）</a> 
                <a href="/" >商业合作</a>               
            </div>
        </div>        
<script type="text/javascript">
            function qbot(){
                $("#tips").hide();
                $("body").css({"overflow":"auto"});
            }
            function query(i){
                var f = $('#formwork option:selected').val();
                var t = $('#trade option:selected').val();
                var c = $('#color option:selected').val();
                var s = $('#sty option:selected').val();
				var r = $('#rate option:selected').val();
                var n = $('#num').val();
                $.get('__URL__/addsty/f/'+f+'/t/'+t+'/c/'+c+'/s/'+s+'/id/'+i+'/n/'+n+'/r/'+r,function(data){
                    if(data == 1){
                        $("#tips").hide();
                        $("body").css({"overflow":"auto"});
                        var h = window.screen.height;
                        var w = window.screen.width;
                        $("#tips").css({"left":(w/2-100)+"px","top":(h/2-100)+"px","display":"block"});
                        $("#tips").html('<div style="font-size:12px; padding:10px;">修改成功</div>').animate({opacity: 'hide'}, 2000);
						document.location.reload();		
                    }
                    if(data == 0){
                        alert("上架后的模板，不允许设置属性为空");
                    }
                });
            }
            function bhtml(){
                var id = '<?php echo ($temp["id"]); ?>';
                $.get("__URL__/qhtml/id/"+id,function(data){
                    $("#ht").html(data);
                });
            }
        </script>

<div id="bd">
    <div class="left1">
        <script type="text/javascript">
	$(document).ready(function(e) {
        $(".userMenu li").mouseover(function(){
			$(this).css("background-color","#FFFAE2");
			});
		 $(".userMenu li").mouseleave(function(){
			$(this).css("background-color","#fff");
			});	
    });
</script>
<div class="usercenter">
    <div class="hd"></div>
    <div class="bd">
        <ul class="userMenu">
            <li><a href="__URL__/index">用户概况</a></li>
            <li><a href="__URL__/update">修改资料</a></li>
            <li><a href="__URL__/changepwd">修改密码</a></li>
            <?php if($_SESSION['type']== 1): ?><li><a href="__URL__/temps">我的模板</a></li><?php endif; ?>
            <li><a href="__URL__/orderlist">我的订单</a></li>
            <li><a href="__URL__/chongzhi">现金充值</a></li>
            <li><a href="__URL__/tixian">提现申请</a></li>
            <li><a href="__URL__/zdmx">账单明细</a></li>
        </ul>
    </div>
</div>

    </div>
    <div class="right1 list">
        <ul class="ks-switchable-nav">
            <a style="width:100px;float: left" href="__URL__/zdmx/in/1"><li <?php if($in == 1): ?>class="ks-active"<?php endif; ?>>我的支出</li></a>
            <a style="width:100px;float: left" href="__URL__/zdmx/in/2"><li <?php if($in == 2): ?>class="ks-active"<?php endif; ?>>我的收入</li></a>
        </ul>
        <div class="contents">
            <div class="ks-switchable-content">
                <?php if(!empty($list1)): ?><div class="templist">
                        <div class="list-title">
                            <span class="title">创建时间</span>
                            <span class="frontpage">名称</span>
                            <span class="title">交易号</span>
                            <span class="count">对方</span>
                            <span class="count1">金额</span>
                            <span class="rate">状态</span>
                            <!--                            <span class="status"></span>-->
                            <span class="op">管理</span>
                        </div>
                        <?php if(is_array($list1)): foreach($list1 as $k=>$list1): ?><div class="temp-item" id="d<?php echo ($list1["id"]); ?>">
                                <span class="title"><?php echo ($list1["ftime"]); ?></span>
                                <span class="frontpage"><?php if($list1["tempid"] == null): echo ($list1["title"]); else: ?><a href="http://<?php if($type[$k] == 1): ?>zxn<?php else: ?>zx<?php endif; ?>.taobao.com/detail.htm?id=<?php echo ($list1['tempid']); ?>"><?php echo ($list1["title"]); ?></a><?php endif; ?></span>
                                <span class="title"><?php echo ($list1["indent"]); ?></span>
                                <span class="count"><?php if($in == 1): echo ($list1["forname"]); else: echo ($list1["name"]); endif; ?></span>
                                <span class="count1"><?php echo ($list1["money"]); ?></span>
                                <span class="rate">成功</span>
                                <!--                                <span class="status"></span>-->
                                <span class="op"><a href="javascript:;" onclick="delet('<?php echo ($list1["id"]); ?>')">删除</a></span>
                            </div><?php endforeach; endif; ?>
                        <div class="pages" style="margin:10px 0;"><?php echo ($page); ?></div>
                    </div>
                    <?php else: ?>
                    <div class="no-jilu">
                        暂无模板记录    
                    </div><?php endif; ?>
            </div>
        </div> 
    </div>
</div>
<style type="text/css">
    #setrate { display:none;}
    .topadmin { width:728px; height:auto; overflow:hidden; margin-bottom:15px;}
    .topadmin span { display:block; float:left; line-height:26px; overflow:hidden; height:26px; width:auto;}
    .topadmin select { display:block; height:26px; line-height:26px; float:left; margin-right:10px;}
    .topadmin input { width:50px; height:22px; line-height:22px; margin-right:10px;}
    .topadmin #submit { width:auto; padding:0 10px; height:26px; line-height:26px;}	
    .ops { height:30px; width:728px; margin:10px 0;}
    .ops a { display:block; width:auto; padding:0 10px; height:20px; line-height:20px; text-align:center; border:1px solid #aaa; background-color:#eee; text-decoration:none; float:left; margin-right:10px; color:#000;}
    .ops a:hover { background-color:#666; color:#fff;}
    .templist { width:728px; height:auto; overflow:hidden;}
    .templist .list-title { height:30px; line-height:30px; font-weight:bold; border-bottom:2px solid #eaeaea; margin-bottom:10px;}
    .templist .temp-item { height:26px; line-height:26px; cursor:pointer; clear:both; padding:15px 0;position: relative;}
    .templist .temp-item .po{position: absolute;left: 330px;top: 80px;height: 20px;width: auto;display: block;color: red;line-height: 20px;}
    .templist span { display:block; float:left;}
    .templist span input { margin-top:8px;}
    .templist .id { width:30px; text-align:center; margin-right:10px;}
    .templist .title { width:130px; text-align:center; margin-right:10px;}
    .templist .frontpage { width:100px; text-align:center; margin-right:10px;}
    .templist .price { width:60px; text-align:center; margin-right:10px;}
    .templist .count { width:60px; text-align:center; margin-right:10px;}
    .templist .count1 { width:60px; text-align:center;}
    .templist .rate { width:60px; text-align:center;}
    .templist .status { width:50px; text-align:center;}
    .templist .op { width:120px; text-align:center;}
</style>
<script type="text/javascript">
    function delet(i){
        var r=confirm("确认删除?")
        if(r == true){
            $("#d"+i).animate({opacity: 'hide'}, 500);
            $.get('__URL__/delbill/id/'+i,function(data){
                if(data == 1){
                    var h = window.screen.height;
                    var w = window.screen.width;
                    $("#edit").css({"left":(w/2)+"px","top":(h/2-100)+"px"});
                    $("#edit").animate({opacity: 'show'}, 1000);
                    $("#edit").html('删除成功').animate({opacity: 'hide'}, 1000);
                }
            });
        }
    }
</script>